package org.collab_games.engine.wrappers;

import java.awt.Dimension;

public class Vector3 {
double x, y, z;

public Vector3(double x, double y, double z) {
	this.x = x;
	this.y = y;
	this.z = z;
}
public Vector3(Vector2 xy, double z) {
	this.x = xy.x;
	this.y = xy.y;
	this.z = z;
}
public Vector2 flatten(double zoom, Dimension viewport) {
	Vector2 toReturn = null;
	int finalX, finalY;
	finalX = (int) (((x*zoom)/z) + (viewport.width/2));
	finalY = (int) (((y*zoom)/z) + (viewport.height/2));
	toReturn = new Vector2(finalX, finalY);
	return toReturn;
}
}
